import request from '@/utils/request'

// 查询出入资金列表
export function listApply(query) {
  return request({
    url: '/business/apply/list',
    method: 'get',
    params: query
  })
}

// 查询出入资金详细
export function getApply(id) {
  return request({
    url: '/business/apply/' + id,
    method: 'get'
  })
}

// 新增出入资金
export function addApply(data) {
  return request({
    url: '/business/apply/add',
    method: 'post',
    data: data
  })
}

// 修改出入资金
export function updateApply(data) {
  debugger
  return request({
    url: '/business/apply',
    method: 'put',
    data: data
  })
}

// 删除出入资金
export function delApply(id) {
  return request({
    url: '/business/apply/' + id,
    method: 'delete'
  })
}
//作废 
export function cancelAssetApply(id){
  return request({
    url: '/business/apply/cancel',
    method: 'post',
    data:{id}
  })
}
